<?php
class ModuleProfileInfoVoList extends SzAbstractMySqlVoList
{

    /**
     * Initialize ModuleProfileInfoVoList.
     *
     * @param array $list array of ModuleProfileInfoVo
     * @return ModuleProfileInfoVoList
     */
    public function __construct($list)
    {
        parent::__construct($list);

        $this->listClassName = 'ModuleProfileInfoVoList';
        $this->ormName = 'ModuleProfileInfo';
    }

    /**
     * Convert vo list to array.
     *
     * @return array
     */
    public function toArray($needEncode = false)
    {
        $result = array();

        if ($this->list) {
            foreach ($this->list as $key => $object) {
                /* @var SzAbstractVo $object */
                $result[$key] = $object->toArray($needEncode);
            }
        }

        return $result;
    }

}